home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1990 / Aug 90 / MacApp.Tech$ 8⁄17⁄90 / 1739-TTEView Read Only-Aug90 < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.2 KB  |  39 lines  |  [TEXT/GEOL]

  1. Item    1059881                         14-Aug-90        07:52PDT
  2.  
  3. From:   PHAROS.TECH                     Pharos Tech, Tech Staff,PRT
  4.  
  5. To:     MACAPP.TECH$                    MacApp Technical
  6.  
  7. Sub:    TTEView Read Only
  8.  
  9. From: Schmitz, Scott D. on Tue, Aug 14, 1990 10:51 AM
  10. Subject: TTEView Read Only
  11. To: MacAPP; Schmitz, Scott D.
  12.  
  13. Someone asked about using a TTEView as Read Only.
  14.  
  15. If you set the Enabled bit to false and the Accept Changes bit to false, you
  16. shouldn't have to ovverride the mousedown handler.
  17.  
  18. I have found that the "Select All" menu item is still enabled however.  If you
  19. want to fix that you can do this (From a previous message):
  20.  
  21. In  TTEView.DoSetupMenus is the line
  22.  
  23. Enable(cSelectAll, (fHTE^^.teLength > 0));
  24.  
  25. With this line, the "Select All" menu item was not dimmed for my read only
  26. text.
  27.  
  28. I changed that line to this:
  29.   Enable(cSelectAll, fViewEnabled & (fHTE^^.teLength > 0));
  30.  
  31. I would normally Override this except there are several cases where TTEView is
  32. used as a field inside of an object and so can't be properly overridden, such
  33. as in the TTEDocument Object available in the sample application DemoText.
  34.  
  35. Scott Schmitz
  36. Pharos Technologies
  37.  
  38.  
  39.